project(U2Lang)

set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOMOC ON)

find_package(Qt5 REQUIRED Core Xml Script)

add_definitions(-DBUILDING_U2LANG_DLL)

include_directories(src)
include_directories(../../include)

file(GLOB_RECURSE SRCS src/*.cpp)
file(GLOB_RECURSE HDRS src/*.h)
qt5_add_resources(RCC_SRCS U2Lang.qrc)

add_library(U2Lang SHARED ${HDRS} ${SRCS} ${RCC_SRCS})

target_link_libraries(U2Lang
        Qt5::Core Qt5::Xml Qt5::Script
        U2Core)

